package minimips.isa.itype;

import minimips.computer.Computer;
import minimips.util.BitUnits;

public class SdInstruction extends MemoryAccessingITypeInstruction {

	public SdInstruction(long memoryAddress, int rs, int rt,
			int immediate) {
		super(memoryAddress, 63, "SD", rs, rt, immediate);
	}

	@Override
	protected void operateOnMemory(Computer computer) {
		computer.setToMemoryAddress((int)computer.getMem_wb_aluOutput().getRegisterValue(), BitUnits.DOUBLE_WORD, computer.getEx_mem_b().getRegisterValue());
	}

	@Override
	protected void operateWriteBack(Computer computer) {
		
	}

}
